<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org">
<head>
    <th:block th:include="include :: header('修改卡状态')"/>
</head>
<body class="white-bg">
<div class="wrapper wrapper-content animated fadeInRight ibox-content">
    <form class="form-horizontal m" id="form-card-edit" th:object="${hzCard}">
        <input name="cardId" th:field="*{cardId}" type="hidden">
        <div class="form-group">
            <label class="col-sm-3 control-label is-required">卡号：</label>
            <div class="col-sm-8">
                <input name="cardNo" th:field="*{cardNo}" class="form-control" type="text" required>
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label is-required">风险状态：</label>
            <div class="col-sm-8">
                <select th:field="*{respCode}" th:value="*{respCode}" name="respCode" class="form-control">
                    <option th:selected="*{respCode=='0000'}" value="0000">无风险</option>
                    <option th:selected="*{respCode=='0002'}" value="0002">有风险</option>
                </select>
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">风险状态说明：</label>
            <div class="col-sm-8">
                <input name="respMsg" th:field="*{respMsg}" class="form-control" type="text">
            </div>
        </div>
    </form>
</div>
<th:block th:include="include :: footer"/>
<script th:inline="javascript">
        var prefix = ctx + "mng/card";
        $("#form-card-edit").validate({
            focusCleanup: true
        });

        function submitHandler() {
            if ($.validate.form()) {
                $.operate.save(prefix + "/edit", $('#form-card-edit').serialize());
            }
        }

</script>
</body>
</html>